# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Ewoud Nuyts <ewoud.nuyts@gmail.com>

pkgname=gliv
pkgver=1.9.7
pkgrel=2
pkgdesc="OpenGL image viewer"
arch=('i686' 'x86_64')
url="http://guichaz.free.fr/gliv/"
license=('GPL')
depends=('gtkglext')
changelog=$pkgname.changelog
source=(http://guichaz.free.fr/gliv/files/${pkgname}-${pkgver}.tar.bz2)
md5sums=('5f0fafaf41651da8882e88b3df062d02')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure --prefix=/usr --mandir=/usr/share/man
  sed -i 's:pixmaps |:pixmaps $(datadir)/applications |:;s:vendor=gnome:vendor=gnome --dir=$(datadir)/applications:' Makefile
  make
} 

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install
}
